function func1()
    i = -4
    while i < 10 do
        local a_value = math.pow(1.1, i)
        print("==========")
        print(i)
        print(a_value)
        -- print(a_value * 7)
        -- print(a_value * 10)
        i = i + 1
    end
end

function func2()
    local pandaman_count = 2;
    local xingyun_count = 3;
    local lucky_value = (pandaman_count + xingyun_count * 0.3) / pandaman_count
    print(lucky_value * 7)
end

function func3()
    local a_value
    local pandaman_count = 1;
    local xingyun_count = 1;
    local lucky_value = (pandaman_count + xingyun_count * 0.3) / pandaman_count
    local fish_dice_table = {
        [1] = 7 * lucky_value,
        [2] = 10 * lucky_value
    }

    local i = 1;
    local fei = -4
    local cant = 1;
    while i <= 40 do
        a_value = math.pow(1.1, fei)
        local f1 = fish_dice_table[1] * a_value
        local f2 = fish_dice_table[2]
        print("round " .. i .. " ==========")
        print(f1)
        print(f2)
        cant = cant * (1 - f1 / 100)
        print(cant)
        fei = fei + 1
        i = i + 1
    end

end

function func4()
    local a = {10, 11, 2, 3, 5}
    print(#a)
    for i = 1, #a do
        print(a[i])
    end

end


function func5()
    for k=1, 100 do
        print(math.random(1,100))
    end
end


function func6()
    local i5 = 1000;   
    local i6 = 0;
    local rand = 0.7;
    
    while i5 > 1 do
        i6 = i6 + i5 * rand;
        i5 = i5 * (1-rand);
    end
    print(i6);
end

func6();